package com.lighthouse.doc.view.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文档-用户浏览关联对象 lh_rel_doc_view
 * 
 * @author ysz
 * @date 2023-06-10
 */
@Builder
public class KnowledgeDocView
{
    private static final long serialVersionUID = 1L;

    /** 文档id */
    private String docId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 浏览时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "浏览时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date viewDate;

    public void setDocId(String docId) 
    {
        this.docId = docId;
    }

    public String getDocId() 
    {
        return docId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setViewDate(Date viewDate) 
    {
        this.viewDate = viewDate;
    }

    public Date getViewDate() 
    {
        return viewDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("docId", getDocId())
            .append("userId", getUserId())
            .append("viewDate", getViewDate())
            .toString();
    }
}
